Page({
  data: {
    open: false,
    handleName: "fn1",
  },
  toggle() {
    this.setData({
      open: !this.data.open,
      handleName: this.data.handleName === "fn1" ? "fn2" : "fn1",
    });
  },
  onTransitionend() {
    console.log("过渡完成");
  },
  fn1() {
    console.log("fn1");
  },
  fn2() {
    console.log("fn2");
  },
  fn3() {
    console.log("fn3");
  },
});
